package tr.gov.tubitak.bilgem.esya.certselector;

import tr.gov.tubitak.uekae.esya.api.smartcard.pkcs11.CardType;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: ramazan.girgin
 * Date: 10.10.2011
 * Time: 08:59
 * To change this template use File | Settings | File Templates.
 */
public class ReaderInfo {
    public List<CertInfo> getmCertInfoList()
    {
        return mCertInfoList;
    }
    ReaderInfo(String iReaderName,long iSlotNo,CardType iCardType)
    {
        mReaderName=iReaderName;
        mSlotNo = iSlotNo;
        mCardType = iCardType;
        mCertInfoList = new ArrayList<CertInfo>();
    }

    public String getmReaderName() {
        return mReaderName;
    }

    public long getmSlotNo() {
        return mSlotNo;
    }

    String mReaderName;
    long mSlotNo;
    CardType mCardType;
    List<CertInfo> mCertInfoList;

    public EBasicSmartCard getBasicSmartCard() {
        return basicSmartCard;
    }

    public void setBasicSmartCard(EBasicSmartCard basicSmartCard) {
        this.basicSmartCard = basicSmartCard;
    }

    EBasicSmartCard basicSmartCard;

    public boolean ismIsLoaded() {
        return mIsLoaded;
    }

    boolean mIsLoaded=false;

    public CardType getmCardType() {
        return mCardType;
    }

    public String toString()
    {
        return  mReaderName;
    }

    public void setLoaded(boolean iLoaded)
    {
        mIsLoaded = iLoaded;
    }

    void addCertInfo(CertInfo iCertInfo)
    {
        mCertInfoList.add(iCertInfo);
    }
}
